﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EntityObjects;
using DAL_V1.App_Code.DBBroker;

namespace BAL.Controller
{
    public class ConsolidateRetrivalControl
    {
        CatalogueDBBroker catalogueRef;
        RequisitionDBBroker requisitionRef;

        public ConsolidateRetrivalControl()
        {
            catalogueRef = CatalogueDBBroker.getCatalogueDBBroker();
            requisitionRef = RequisitionDBBroker.getRequisitionDBBroker();
        }
        public List<Category> getAllCategory()
        {
            return catalogueRef.selectAllCategory();
        }

        public List<Retrival> getRetrievalList(int catId)
        {
            List<Retrival> retrivalList = new List<Retrival>();
            retrivalList = requisitionRef.getItemsForRetrival(catId);

            return retrivalList;
        }

    }
}
